import service from '@/utils/request'

// @Tags FdEfficacy
// @Summary 创建功效
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdEfficacy true "创建功效"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /fdEfficacy/createFdEfficacy [post]
export const createFdEfficacy = (data) => {
  return service({
    url: '/fdEfficacy/createFdEfficacy',
    method: 'post',
    data
  })
}

// @Tags FdEfficacy
// @Summary 删除功效
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdEfficacy true "删除功效"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdEfficacy/deleteFdEfficacy [delete]
export const deleteFdEfficacy = (data) => {
  return service({
    url: '/fdEfficacy/deleteFdEfficacy',
    method: 'delete',
    data
  })
}

// @Tags FdEfficacy
// @Summary 批量删除功效
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除功效"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdEfficacy/deleteFdEfficacy [delete]
export const deleteFdEfficacyByIds = (data) => {
  return service({
    url: '/fdEfficacy/deleteFdEfficacyByIds',
    method: 'delete',
    data
  })
}

// @Tags FdEfficacy
// @Summary 更新功效
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdEfficacy true "更新功效"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fdEfficacy/updateFdEfficacy [put]
export const updateFdEfficacy = (data) => {
  return service({
    url: '/fdEfficacy/updateFdEfficacy',
    method: 'put',
    data
  })
}

// @Tags FdEfficacy
// @Summary 用id查询功效
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdEfficacy true "用id查询功效"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fdEfficacy/findFdEfficacy [get]
export const findFdEfficacy = (params) => {
  return service({
    url: '/fdEfficacy/findFdEfficacy',
    method: 'get',
    params
  })
}

// @Tags FdEfficacy
// @Summary 分页获取功效列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取功效列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdEfficacy/getFdEfficacyList [get]
export const getFdEfficacyList = (params) => {
  return service({
    url: '/fdEfficacy/getFdEfficacyList',
    method: 'get',
    params
  })
}


export const setFdEfficacyGraphic = (data) => {
  return service({
    url: '/fdEfficacy/setFdEfficacyGraphic',
    method: 'post',
    data
  })
}


export const getFdEfficacyGraphic = (params) => {
  return service({
    url: '/fdEfficacy/getFdEfficacyGraphic',
    method: 'get',
    params
  })
}

